<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <title>转账页面</title>
</head>
<body>


<h1>银行管理系统</h1>

<form th:action="@{/user/doTransfer}" >
    <input id="action" name="action" type="hidden" value="action">
    <h4 style="color: red" th:text="${msg}"></h4>
    <p>请选择需要转账的用户：</p>
    <select th:name="userName">
      <option th:each="user:${userBeans}" th:text="${user.getUserName()}" th:value="${user.getUserName()}"></option>
    </select>

    <p>请输入需要存款的金额:<input th:type="text" th:name="money" ></select></p>
    <p><input type="submit" value="提交"/></p>
    <input type="button" th:value="返回用户页面" onclick="window.location='/user/index'">
</form>

</body>
</html>